//
//  WriteInfoTableViewCell.m
//  marrymarry
//
//  Created by lsj on 16/9/8.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "WriteInfoTableViewCell.h"
@implementation WriteInfoTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)reloadTheViewsWithIndexPath:(NSIndexPath *)indexPath
{
    
    if (indexPath.section == 0) {
        self.headImgView.hidden = YES;
        self.mainImgView.hidden = YES;
        self.sexLabel.hidden = YES;
        self.accessoryType = UITableViewCellAccessoryNone;
        self.UsrLabel.hidden = NO;
        self.setHeadImgLabel.hidden = YES;
        self.UsrLabel.text = @"用户昵称";
        self.UsrLabel.font = [UIFont systemFontOfSize:13];
        self.UsrLabel.textColor = [UIColor darkGrayColor];
    }
    else if (indexPath.section == 1) {
        self.headImgView.hidden = NO;
        self.mainImgView.hidden = NO;
        self.sexLabel.hidden =YES;
        self.UsrLabel.hidden = YES;
         self.UsrNameT.hidden = YES;
        self.setHeadImgLabel.hidden =NO;
       self.setHeadImgLabel.text = @"设置头像和形象照";
        self.setHeadImgLabel.font = [UIFont systemFontOfSize:13];
        self.setHeadImgLabel.textColor = [UIColor darkGrayColor];
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }else if (indexPath.section == 2)
    {
        self.sexLabel.hidden = NO;
        self.setHeadImgLabel.hidden = NO;
        self.headImgView.hidden = YES;
        self.mainImgView.hidden = YES;
       self.setHeadImgLabel.text = @"选择性别";
        self.setHeadImgLabel.font = [UIFont systemFontOfSize:13];
        self.setHeadImgLabel.textColor = [UIColor darkGrayColor];
        self.UsrLabel.hidden = YES;
        self.UsrNameT.hidden = YES;
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
}

@end
